<template>
  <view class="h-[100vh]">
    <app-nav-bar shadow left-text="我的" color="#007aff" />
    <view class="pb-[var(--window-bottom)]" :style="navBarStyle">
      <slot></slot>
    </view>
  </view>
</template>

<script setup>
import { computed } from 'vue'
import { useAppStore } from '@/store'
const navBarStyle = computed(() => {
  return {
    height: `calc(100vh - ${useAppStore().navBarHeight + 'px'})`
  }
})
</script>

<style></style>
